In [ ]:
from bokeh.io import output_notebook
output_notebook()
In [ ]:
from cameo import models
from marsi.cobra.flux_analysis import sensitivity_analysis
In [ ]:
model = models.bigg.iJO1366
In this example, the ammount of produced serine is increased in steps. The biomass production will decrease with increased accumulation of Serine. This is a scenario where an metabolite analog would compete with Serine and the cell needs to increase the production of Serine to compete for biomass production and enzyme activity.
In [ ]:
ser__L = model.metabolites.ser__L_c
In [ ]:
result = sensitivity_analysis(model, ser__L, is_essential=True, steps=10,
biomass=model.reactions.BIOMASS_Ec_iJO1366_core_53p95M)
In [ ]:
result.data_frame
Out[ ]:
In [ ]:
result.plot(width=700, height=500)
We can also see how does this affects other variables.
In [ ]:
result = sensitivity_analysis(model, ser__L, is_essential=True, steps=10,
variables=[model.reactions.SERAT, model.reactions.SUCOAS],
biomass=model.reactions.BIOMASS_Ec_iJO1366_core_53p95M)
In [ ]:
result.data_frame
Out[ ]:
In [ ]:
result.plot(width=700, height=500)
The same analysis can be done with different simulation methods (e.g. lMOMA).
In [ ]:
from cameo.flux_analysis.simulation import lmoma
In [ ]:
result = sensitivity_analysis(model, ser__L, is_essential=True, steps=10, simulation_method=lmoma,
biomass=model.reactions.BIOMASS_Ec_iJO1366_core_53p95M)
In [ ]:
result.plot(width=700, height=500)
In [ ]:
pyr = model.metabolites.pyr_c
In [ ]:
result = sensitivity_analysis(model, pyr, is_essential=False, steps=10,
biomass=model.reactions.BIOMASS_Ec_iJO1366_core_53p95M)
In [ ]:
result.plot(width=700, height=500)
In [ ]:
result = sensitivity_analysis(model, pyr, is_essential=False, steps=10, simulation_method=lmoma,
biomass=model.reactions.BIOMASS_Ec_iJO1366_core_53p95M)
In [ ]:
result.data_frame
Out[ ]: